package net.tatu.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.tatu.dao.PubCodeMapper;
import net.tatu.dao.SysLogMapper;
import net.tatu.dao.TargetMapper;
import net.tatu.dao.UserMapper;
import net.tatu.model.PubCode;
import net.tatu.model.SysLog;
import net.tatu.model.Target;
import net.tatu.model.User;
import net.tatu.service.PubCodeService;
import net.tatu.service.SysLogService;
import net.tatu.service.TargetService;
import net.tatu.service.UserService;
import net.tatu.util.Encrypt;
import net.tatu.util.Util;

@Service
public class TargetServiceImpl implements TargetService {
	Logger log = Logger.getLogger(TargetServiceImpl.class);
	@Autowired
	private TargetMapper targetMapper;

	@Override
	public List<Target> getTargets() {
		List<Target> list = targetMapper.getTargets(null);
		return list;
	}

	@Override
	public Target getTargetByProjId(long projectSplitId) {
		Target target = targetMapper.getTargetByProjectId(projectSplitId);
		return target;
	}

	
}
